package com.yanqu.road.server.cmd.activity.fb;

import com.yanqu.road.entity.enums.eGamePlayerEventType;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.ServerListMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @Author wpj
 * @Date 2021/1/22
 */
@Cmd(code = GameProtocol.S_GET_FACE_BOOK_NEW_VALUE, desc = "获取fb最新follow数量")
public class GetFbNewFollowCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.notifyListener(eGamePlayerEventType.FaceBookFunFollowNum.getValue(), ServerListMgr.getFbFollowCount());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
